package com.sanqi.work.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sanqi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 班组对象 work_team
 * 
 * @author duany
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_team")
public class WorkTeam extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 班组名称 */
    @Excel(name = "班组名称")
    @TableField(value="team_name")
    private String teamName;

    /** 职场Id */
    @Excel(name = "职场Id")
    @TableField(value="workplace_id")
    private String workplaceId;

    /** 状态 1启用 0禁用 */
    @Excel(name = "状态 1启用 0禁用")
    @TableField(value="team_status")
    private String teamStatus;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setTeamName(String teamName) 
    {
        this.teamName = teamName;
    }

    public String getTeamName() 
    {
        return teamName;
    }

    public void setWorkplaceId(String workplaceId) 
    {
        this.workplaceId = workplaceId;
    }

    public String getWorkplaceId() 
    {
        return workplaceId;
    }

    public void setTeamStatus(String teamStatus) 
    {
        this.teamStatus = teamStatus;
    }

    public String getTeamStatus() 
    {
        return teamStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teamName", getTeamName())
            .append("workplaceId", getWorkplaceId())
            .append("teamStatus", getTeamStatus())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
